package com.ns.sbs.oauth.rent.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 服务菜单
 *
 * @author: lw
 * @since: 2024/09/13 12:55
 */
@Data
@ToString
@Accessors(chain = true)
@TableName(value = "KERNEL_RENT_SERVER")
public class RentServerEntry {
    /**
     * 此模块对应的表名
     */
    public static final String TABLE_NAME = "KERNEL_RENT_SERVER";
    /**
     * id，--主键、自增
     */
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 租户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long rid;

    /**
     * 服务id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long sid;
}
